/*
 * Landien.java
 *
 * Created on 13 avril 2007, 18:00
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package Entity;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;

/**
 * Entity class Landien
 * 
 * @author yas-nico
 */
@Entity
public class Landien implements Serializable {



   /* @ManyToOne
    private Land monLand;*/

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Integer idLandien;
    private String nom;
    private double budget;

    
    @OneToOne(fetch=FetchType.EAGER)
    private Entreprise ent;
    
    
    /** Creates a new instance of Landien */
    public Landien() {
    }

    /**
     * Gets the id of this Landien.
     * @return the id
     */
    public Integer getIdLandien() {
        return this.idLandien;
        
    }

    /**
     * Sets the id of this Landien to the specified value.
     * @param id the new id
     */
    public void setIdLandien(Integer id) {
        this.idLandien = id;
    }

    /**
     * Returns a hash code value for the object.  This implementation computes 
     * a hash code value based on the id fields in this object.
     * @return a hash code value for this object.
     */
   

    public String getNom() {
        return nom;
    }

    public void setNom(String nom) {
        this.nom = nom;
    }

    public double getBudget() {
        return budget;
    }

    public void setBudget(double budget) {
        this.budget = budget;
    }

    public Entreprise getEnt() {
        return ent;
    }

    public void setEnt(Entreprise ent) {
        this.ent = ent;
    }
    
}
